package com.woniuxy.meal.service;

import com.woniuxy.meal.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.meal.form.ModifyInfoForm;
import com.woniuxy.meal.form.RegisterForm;
import com.woniuxy.meal.form.UserLoginForm;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zz
 * @since 2023年06月13日
 */
public interface UserService extends IService<User> {

    User login(UserLoginForm userLoginForm) throws Exception;

    void sentCode(String phone) throws Exception;

    void registerUser(RegisterForm registerForm) throws Exception;

    void upPhoto(MultipartFile file, Integer userId) throws Exception;

    User modifyInfo(ModifyInfoForm form) throws Exception;
}
